<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<form id="form_sysClass_showedit" method="post" action="../../shiro/class/save.action">
     <input type="hidden" name="classId" value="${sysClass.classId==null?0:sysClass.classId}"> 
    <table class="tab_form">
        <tr>
            <td><input class="easyui-textbox" name="className" data-options="label:'班级名称:',required:true"
                       value="${sysClass.className}"/></td>
            <td><input class="easyui-combobox" name="roleIds"
                       data-options="valueField:'id',textField:'text',url:'../../shiro/role/loadComboBoxData.action?userId=${sysUser.userId}',multiple:true" /></td>
        </tr>
        <tr>
        </tr>
    </table>
</form>
<div style="text-align:center;padding:5px 0">
    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()" style="width:80px">保存</a>
</div>
<script>
    function submitForm() {
        $('#form_sysClass_showedit').form('submit', {
            success: function () {
                $('#win_main').window("close");
                $("#sysClass").datagrid("reload");
            }
        });
    }
</script>